package backpage.annotation;


import backpage.validator.EmployExistValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 用于字段上 校验改员工是否存在
 *
 * @author 刘仁杰
 */

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = EmployExistValidator.class)
@Documented
public @interface EmployExist {
    String message() default "";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};

}
